<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://cksource.com/ckfinder" prefix="ckf"%>
<%@ taglib uri="http://ckeditor.com" prefix="ck"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setContentType("text/html;charset=utf-8");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>燃亮星空</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="easyui/jquery.min.js"></script>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js" ></script>
<script type="text/javascript" src="js/test_new.js"></script>
<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" />
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript" src="<%=basePath%>/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<%=basePath%>/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
	window.onload = function(){
	}
	function onGet(){
		//alert(CKEDITOR.instances.Content.getData());
	}
	function onPut(){
		CKEDITOR.instances.Content.setData("<p><strong>Wendy</strong></p>");
	}
	
	function check(){
		for ( instance in CKEDITOR.instances ) 
        CKEDITOR.instances[instance].updateElement(); 
	}
	
	
</script>

</head>

<body>
      <div align = "center">
    <p>燃亮星空</p>
     <hr/>
    <form id="xiao" action=" " method="POST" >
				主题:
				<input id="pain" type="text" name="name"></input>
				<br>
				<br>
				是否置顶： 是
				<input type="radio" name="top" value="1" />
				否
				<input type="radio" name="top" value="0" />

			</form>
    
   
    </div>
    
    
    

	<div style="margin:0 auto; width: 60%;">
	    <form action="show.jsp" method="get" onsubmit="check()">  
		<textarea id="Content" name="content" rows="20" cols="100" name="editor"></textarea>
		<ckf:setupCKEditor basePath="/LHS_EDITOR/ckfinder/" editor="Content" />
		<ck:replace replace="Content" basePath="/LHS_EDITOR/ckeditor"></ck:replace>
		<p>
		<div align="center">
		<input type="button" value="查看" onclick="split()"/>
		
		
    <input type="button" value="提交" id="devil" onclick = "heaven()"/>
    </div>
		 </form>  
	</div>
	<hr/>
</body>
</html>